#include "BradgeEagle.h"

BradgeEagle::BradgeEagle()
	:GameObject()
{

}

BradgeEagle::BradgeEagle(int id, float posX, float posY, int width, int height)
	: GameObject(id,posX, posY,width,height)
{
	init();
}

BradgeEagle::~BradgeEagle()
{

}

void BradgeEagle::init()
{
	m_sprite = ResourceManager::getInstance()->cS_bragdeEagle;
}

void BradgeEagle::update(float time)
{
	updateVec(time);
	moveEnity();
	setAnimation();
	setRectCollsion();
}

void BradgeEagle::setAnimation()
{

}

void BradgeEagle::setRectCollsion()
{

}

void BradgeEagle::draw()
{
	m_sprite->update();
	D3DXVECTOR2 pos = m_camera->getPointTransform(m_posX, m_posY);
	m_sprite->draw(m_spriteHandler, pos.x, pos.y, false);
}

void BradgeEagle::destroy()
{

}
